package behavior.Mediator;

/**
 * Created by LYJ on 2016/10/21.
 * 具体同事类（房东）
 */
public class HouseOwner extends Person{
    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }
    public void contact(String message){
        this.mediator.contact(message,this);
    }
    public void getMessage(String message){
        System.out.println("房东："+name+" , 获得消息："+message);
    }
}
